<?php
//Leaps Cache @ 2015-04-22 10:02:30
defined('LEAPS_VERSION') or exit('No permission resources.');
error_reporting ( E_ERROR );
$Head = S('common/common');
$CSS_PATH = SKIN_PATH.'default/css/';
$IMG_PATH = SKIN_PATH.'default/images/';
$JS_PATH = SKIN_PATH.'default/js/';
?>
<?php include template("content","header"); ?>
<link href="<?php echo  isset($CSS_PATH) ? $CSS_PATH : '';?>vote.css" rel="stylesheet" type="text/css" />
<!--main-->
<div class="main tps">
<div class="crumbs"><a href="<?php echo defined('STIE_URL') ? STIE_URL : '';?>">首页</a><span> &gt; </span> <a href="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote$action=lists">投票</a>  </div>
<form name="myform" id="myform"  action="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote&action=post&subjectid=<?php echo  isset($subjectid) ? $subjectid : '';?>" method="post">
<div class="vote_result">
    	<div class="tit"><span class="r">总票数：<strong><?php echo $vote_data['total'];?></strong></span><h5>标题: <?php echo  isset($subject) ? $subject : '';?></h5></div>
        <div class="c_box wrap">
		<input type="hidden" name="subjectid" value="<?php echo  isset($subjectid) ? $subjectid : '';?>">
        <table width="100%" border="1" cellspacing="0" cellpadding="0" class="tp">
       	<?php $n=1;if(is_array($options)) foreach($options AS $r) { ?>
       	<?php $i++; ?>
             <tr>
             	<th><?php echo  isset($i) ? $i : '';?></th>
               <td class="tp_tit"><input type=<?php if($ischeckbox=='0') { ?>"radio"<?php } else { ?>"checkbox"<?php } ?> name="radio[]" id="radio" value="<?php echo $r['optionid'];?>" <?php echo  isset($check_status) ? $check_status : '';?> /></td>
               <td class="ls"><?php echo $r['option'];?></td>
               <td class="tdcol3"><font color=red><?php echo $vote_data[$r['optionid']]==''? 0:$vote_data[$r['optionid']]?></font> 票</td>
             </tr>
        <?php if(isset($n))$n++;} if(isset($n))unset($n); ?> 
        </table>
        
        </div>
    </div>
    <div class="shuru_btn"><button class="tp_btn" type="submit" style="<?php echo  isset($display) ? $display : '';?>"></button><a href="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote&action=result&subjectid=<?php echo  isset($subjectid) ? $subjectid : '';?>">[查看投票结果] </a></div>
    </form>
    <div class="vote_listt">
    	<div class="tit"><span class="r"><a href="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote&action=lists">查看更多>></a></span><h5>其他投票</h5></div>
        <ul class="wrap licol2 icon3j">
             <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" yun_action=\"vote\" data=\"op=vote&tag_md5=26b02a115cbe0f1d743eb4d8a0d08f77&do=other_vote&num=8&order=subjectid+DESC\"><a href=\"javascript:void(0);\" class=\"admin_piao_edit\">编辑</a>";}?>
			 	<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
				
				 <li><a title="<?php echo $r['subject'];?>" href="<?php echo defined('SITE_URL') ? SITE_URL : '';?>index.php?app=vote$action=show&show_type=1&subjectid=<?php echo $r['subjectid'];?>"><?php echo $r['subject'];?></a><span ><font color="#1E50A0">(得票数: <?php echo $r['votenumber'];?>)</font></span></li>
				<?php if(isset($n))$n++;} if(isset($n))unset($n); ?>
			 <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
       
        </ul>
    </div>
</div>
<?php include template("content","footer"); ?>
